package com.xmx.ndmallwxapi;

import com.baomidou.mybatisplus.autoconfigure.IdentifierGeneratorAutoConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;


@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class, IdentifierGeneratorAutoConfiguration.class})
@EnableDiscoveryClient
@EnableFeignClients(basePackages ="com.xmx.ndmallwxapi.feign") /*启动feign 去掉restTemplate远程调用*/
@EnableCaching
@ComponentScan({"com.xmx.common","com.xmx.ndmallwxapi"})
public class NdmallWxApiApplication {

    public static void main(String[] args) {
        SpringApplication.run(NdmallWxApiApplication.class, args);
    }

}
